#include<unordered_set>
#include<iostream>
using namespace std;
void getData(unordered_set<int>&s,int n,int front,int rear){
    for(int i=0;i<n;i++)
        s.insert(rand()%(rear-front+1)+front);
}
void putData(unordered_set<int>s,string str){
    cout<<str;
    for(auto val:s)
        cout<<val<<" ";
        cout<<endl;
}
int main(){
    unordered_set<int>us;
    getData(us,20,-21,19);
    putData(us,"原始数据：");
    auto air=us.find(0);
    if(air!=us.end()){
        cout<<"已找到元素"<<*air<<"的位置"<<endl;
        us.erase(air);
        putData(us,"元素删除：");
    }
    return 0;
}